<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions">

<body>

	<ui:composition>

		<center>
			<p:panel style="width:70%">
			<p:graphicImage name="logoMedMark2.jpg" library="images" />

			<table border="0" align="right" cellpadding="2" cellspacing="2">
				<h:form>


					<p:menubar rendered="#{beanUsuario.user.tipo_usuario == 2}">
						 <p:menuitem value="Inicio" action="/pages/indexCli?faces-redirect=true" />
						<p:submenu label="Gerenciar Profissionais">
							<p:menuitem value="Adicionar Profissional"
								action="/pages/cadastroProfissional?faces-redirect=true" />
							<p:menuitem value="Visualizar Profissionais" 
								action="/pages/visualizarProfissionais?faces-redirect=true" />
								
									<!-- "#{beanVisualizarProfissionais.carregarDadosProfissionais()}"  -->
						</p:submenu>

						<p:submenu label="Gerenciar Consultas">
							<p:menuitem value="Criar Horários"
								action="/pages/cadastroHorario?faces-redirect=true" />
							<p:menuitem value="Solicitações"
								action="/pages/solicitacoes?faces-redirect=true" />
							<p:menuitem value="Consultas"
								action="/pages/consultas?faces-redirect=true" />
							<p:menuitem value="Visualizar Horários" 
								action="/pages/visualizarHorarios?faces-redirect=true" />
							<p:menuitem value="Histórico de Consultas" 
								action="/pages/historicoConsultas?faces-redirect=true" />
						</p:submenu>


						 <p:menuitem value="Logout" actionListener="#{beanClinica.logout()}" action="/pages/login/login?faces-redirect=true" />

					</p:menubar>
					
					
					

				</h:form>
			</table>
			</p:panel>
		</center>

	</ui:composition>

</body>
</html>